package com.example.demo.controller;

import com.example.demo.model.ListTypes;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author liuyandeng
 * @date 2023/7/23
 * @Description
 */

@Controller
@ResponseBody
@RequestMapping("/listconf")
public class ListConfigController {

    @Resource
    private ListTypes listTypes;

    @RequestMapping("/getlist") // localhost:9999/listconf/getlist
    public void getList() {
//        System.out.println(listTypes.getName());
        System.out.println(listTypes.getName().get(0));
    }
}
